From bd5bc2f1b4c03e0a4fea4247e518250e38d53130 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 11 Jul 2025 20:21:11 -0700 Subject: [PATCH] cmdpad: fix compilation with GCC 15 There's no parameter to this function. Signed-off-by: Rosen Penev --- utils/cmdpad/Makefile | 2 +- utils/cmdpad/patches/010-gcc15.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 utils/cmdpad/patches/010-gcc15.patch diff --git a/utils/cmdpad/Makefile b/utils/cmdpad/Makefile index 5be2f01bb5..8ab25530da 100644 --- a/utils/cmdpad/Makefile +++ b/utils/cmdpad/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cmdpad PKG_VERSION:=0.0.3 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=@SF/cmdpad diff --git a/utils/cmdpad/patches/010-gcc15.patch b/utils/cmdpad/patches/010-gcc15.patch new file mode 100644 index 0000000000..ce83d7ec91 --- /dev/null +++ b/utils/cmdpad/patches/010-gcc15.patch @@ -0,0 +1,11 @@ +--- a/src/command.c ++++ b/src/command.c +@@ -160,7 +160,7 @@ int addCommand( char * command, unsigned + struct CMD * tmp ; + int count ; + +- count = getNumberofEntry( cmd) ; ++ count = getNumberofEntry() ; + if( count >= 0) { + cmd = (struct CMD *) realloc( cmd, + (count+2)*sizeof( struct CMD)) ; -- 2.30.2